export const CHANGE_USER_NAME='CHANGE_USER_NAME'
export const CHANGE_USER_NAME_ASYNC='CHANGE_USER_NAME_ASYNC'

export const changeUserName=()=>{
    return{
        type:CHANGE_USER_NAME
    }
}
export const changeUserNameAsync=()=>{
    return(dispatch)=>{
        //请求开始
        setTimeout(()=>{
            //请求结束
           dispatch({
                type:CHANGE_USER_NAME
            })
        },2000)  
    }

}